// 房产管理

import request from '@/utils/request'
// 获取房产列表
export function getHouseList(params) {
  return request({
    url: '/properties',
    method: 'get'
  })
}
export function delHouseList(id) {
  return request({
    url: `/properties/ ${id}`,
    method: 'delete'
  })
}
export function getHouseCount(params) {
  return request({
    url: `/properties/count`,
    method: 'get'

  })
}
export function getHouseDetail(id) {
  return request({
    url: `/properties/${id}`,
    method: 'get'

  })
}

export function addHouse(data) {
  return request({
    url: `/properties`,
    method: 'post',
    data
  })
}

export function editHouse(data) {
  return request({
    url: `/properties/${data.id}`,
    method: 'put',
    data
  })
}
